package com.atguigu.eduservice;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

/**
 * @Author panghl
 * @Date 2020/12/25 16:10
 * @Description 教师服务启动类
 **/
@SpringBootApplication
@EnableDiscoveryClient  //nacos注册
@EnableFeignClients
@ComponentScan(basePackages = {"com.atguigu"})
@MapperScan(basePackages = {"com.atguigu.eduservice.mapper","com.atguigu.edu.mapper"})
public class EduServiceApplication {

  public static void main(String[] args) {
    SpringApplication.run(EduServiceApplication.class,args);
  }

}
